<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="__PUBLIC__/css/bg.css" rel="stylesheet">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="__PUBLIC__/js/admin/user/gt.js"></script>
    <script src="__PUBLIC__/js/admin/user/login.js"></script>
    <title>登录</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-8">
        </div>
        <div class="col-md-4" style="opacity: 0.85">
            <div class="alert alert-warning" style="{$result.warningStyle}" id="warning">{$result.warningInfo}</div>
            <div class="panel panel-default" id="form">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        用户登录
                    </h3>
                </div>
                <div class="panel-body">
                    <form role="form" action="login" method="post" id="data">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" placeholder="请输入用户名" id="username" name="username">
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control" placeholder="请输入密码" id="password" name="password">
                        </div>
                        <div class="form-group" id="captcha-box"></div>
                        <a class="btn btn-default" id="loginBtn">登录</a>
                        <span class="help-block" id="loginHelpBlock" style="color: red;display: none;">请验证</span>
                    </form>
                </div>
                <div class="panel-footer">
                    <a href="{$result.registerUrl}" style="color: #0e90d2">还未注册?点击注册</a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

<script>
    $(document).ready(function () {
        document.getElementById('form').style = 'position:relative; top: ' + ((screen.availHeight - 400) / 2) + 'px';
    });


</script>